package Mangos::DB::Mangos::SkillExtraItemTemplate;

use strict;

use base qw(Mangos::DB::Mangos);

__PACKAGE__->meta->setup
(
    table   => 'skill_extra_item_template',

    columns => 
    [
        spellId                => { type => 'integer', not_null => 1 },
        requiredSpecialization => { type => 'integer', default => '0', not_null => 1 },
        additionalCreateChance => { type => 'float', default => '0', not_null => 1, precision => 32 },
        additionalMaxNum       => { type => 'integer', default => '0', not_null => 1 },
    ],

    primary_key_columns => [ 'spellId' ],
);

1;

package Mangos::DB::Mangos::SkillExtraItemTemplate::Manager;

use strict;
use warnings;

use base 'Rose::DB::Object::Manager';

sub object_class { 'Mangos::DB::Mangos::SkillExtraItemTemplate' }

__PACKAGE__->make_manager_methods('skill_extra_item_template');

1;
